﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyBBS.Data.Models;

namespace MyBBS.Services
{
    public interface IPostService
    {
        IQueryable<Post> GetPosts();
        IQueryable<Post> GetPostsByCategory(long categoryID);
        IQueryable<Post> GetPostsByTag(long tagID);

        IList<Category> GetCategories();
        Category GetCategoryByID(long categoryID);

        IList<Tag> GetPopularTags();

        Post GetPostByID(long postID);

        Comment GetCommentByID(long commentID);

        //int GetPageCount();
        //int GetCommentPageCount(long postID);
        //int GetCategoryPageCount(long categoryID);

        long SubmitComment(Comment comment);
        long New(Post post);

        int Kick(Kick kick);
    }
}
